﻿using CPPEI.Coolzon.Event.NCL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace CPPEI.Coolzon.UI.Views
{
    public partial class AutoPlayView
    {
        [Common.Subscribe]
        public void OnOpened(NCLOpenSceneEvent @event)
        {
            if (@event.State == NCLEventState.Failure)
            {
                this.Dispatcher.Invoke(() =>
                {
                    if (IsComplete)
                    {
                        this.tbTime.Foreground = new SolidColorBrush(Colors.Red);
                        BeginStory();
                    }
                });

            }
        }
    }
}
